package com.example.dagger2one.persenter;

import android.content.Context;
import android.widget.Toast;

import com.example.dagger2one.model.ICommonView;
import com.example.dagger2one.model.User;

import javax.inject.Inject;

/**
 * @作者: njb
 * @时间: 2019/7/19 10:16
 * @描述:
 */
public class RegisterPresenter {
    ICommonView iCommonView;

    @Inject
    public RegisterPresenter(ICommonView iCommonView){
        this.iCommonView = iCommonView;
    }

    public void register(User user){
        Context mContext = iCommonView.getContext();
        Toast.makeText(mContext,"注册中，请稍后......",Toast.LENGTH_SHORT).show();
    }
}
